<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/security/tags"
	prefix="security"%>




<div class="jumbotron">
	<div class="container">
		<p>Esegui il Login!</p>
	</div>
</div>



<div class="container">
	<div class="col-md-4"></div>
	<div class="col-md-4">
		<security:authorize access="!isAuthenticated()">
			<form name="loginform"
				action="${pageContext.request.contextPath}/j_spring_security_check"
				method="post" class="form-signin" role="form">

				<input type="text" placeholder="Username" class="form-control"
					name="j_username"> <input type="password"
					placeholder="Password" class="form-control" name="j_password">
				<div class="checkbox">
					<label> <input type="checkbox" value="remember-me">
						Remember me
					</label>
				</div>
				<input type="hidden" name="${_csrf.parameterName}"
					value="${_csrf.token}" />
				<button type="submit" class="btn btn-success">
					<spring:message code="common.signin" />
				</button>

			</form>
		</security:authorize>
	</div>
	<div class="col-md-4"></div>
</div>
